<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>身份证号码解析</title>
</head>
<body>

<input type="text" id="idNumber" placeholder="请输入身份证号码">
<button id="parseButton">生日</button>
<div id="output"></div>

<script>
document.getElementById("parseButton").addEventListener("click", function() {
    var idNumber = document.getElementById("idNumber").value;
    var year = idNumber.slice(6, 10);
    var month = idNumber.slice(10, 12);
    var day = idNumber.slice(12, 14);
    document.getElementById("output").innerText = year + "年" + month + "月" + day + "日";
});
</script>
</body>
</html>
